USE [OHNEW]
GO

/****** Object:  Table [dbo].[S_TableRelation]    Script Date: 11/16/2012 17:32:07 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[S_TableRelation](
	[ID] [varchar](50) NOT NULL,
	[LeftTable] [varchar](50) NOT NULL,
	[LeftField] [varchar](50) NOT NULL,
	[RightTable] [varchar](50) NOT NULL,
	[RightField] [varchar](50) NOT NULL,
	[JoinType] [int] NOT NULL,
 CONSTRAINT [PK_S_TableRelation] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[S_TableRelation] ADD  CONSTRAINT [DF_S_TableRelation_JoinType]  DEFAULT ((0)) FOR [JoinType]
GO


